<%@ include file="/WEB-INF/jsp/taglib.jsp" %>

<jsp:useBean id="actionBean" scope="request" type="com.rupertjones.globalcron.web.DeleteJobAction" />

<s:layout-render name="/WEB-INF/jsp/layout.jsp" title="Global Cron" subtitle="Delete Job">
    <s:layout-component name="body">
        <h1>Delete Job</h1>
        <table class="info">
            <tr>
                <td>Name</td>
                <td>${actionBean.job.name}</td>
            </tr>
            <tr>
                <td>Timezone</td>
                <td>${actionBean.job.timezone}</td>
            </tr>
            <tr>
                <td>Cron Expression</td>
                <td>${actionBean.job.cron}</td>
            </tr>
            <tr>
                <td>Script Path</td>
                <td>${actionBean.job.script}</td>
            </tr>
        </table>
        <p/>
        <div class="buttons">
            <s:form action="DeleteJob.action" beanclass="com.rupertjones.globalcron.web.DeleteJobAction">
            <s:hidden name="job.id"/>
            <s:submit name="delete" value="delete"/><s:submit name="cancel" value="cancel"/>
            </s:form>
        </div>
    </s:layout-component>
</s:layout-render>